#include<iostream>
using namespace std;
int n;
int main()
{
	cin >> n;
	if (n == 0) {
		cout << 0 << endl;
	}
	if (n < 0) {
		cout << "-";
		n = -n;
	}
	int flag = 0;
	while (n) {
		int k = n % 10;
		n /= 10;
		if (!k && !flag)continue;
		else {
			cout << k;
			flag = 1;
		}
	}
	return 0;
}